<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@include file="../../common/header.jsp"%>
<script type="text/javascript" src="${ctx}/static/00100/javascripts/app.js"></script>
<script type="text/javascript" src="${ctx}/static/00100/javascripts/gopay/express/certNoChecker.js"></script>
<script type="text/javascript" src="${ctx}/static/00100/javascripts/gopay/express/expressCommon.js?v=20180224"></script>
<script type="text/javascript" src="${ctx}/static/00100/javascripts/cloud/expressPayChannel.js?v=1"></script>
<%@include file="../../common/microdone.jsp"%>
<!--快捷支付合并付款-->
<script>
    var cas_server_url = '${cas_server_url}';
//    var expressGopayPwdCtrl;//余额快捷支付
    $(function() {
        if (!pgeditor) {
//            expressGopayPwdCtrl = new PwdControl("payPassword", "expressGopayPwdCtrlDiv", 252, 36);
            pgeditor.pgInitialize();
        }

    });
</script>

<div class="container">
    <div class="grid-960">
        <!-- 支付订单详情 -->
        <jsp:include page="../../content/orderDtl.jsp" flush="true"/>
        <div class="payment-mode">
            <form id="confirmForm" name="confirmForm" method="post" action="${ctx}/sec/cloud/00100/express/submit.shtml?orderKey=<%=request.getParameter("orderKey")%>&orderId=${orderId}">
            <div class="borderBox-3 posiRelative">
                <table class="table-tml-3" style="margin-bottom: 0;margin-top: 30px;">
                    <tbody>
                    <tr>
                        <th>付款方式：</th>
                        <td>
                            <c:if test="${(exPayWay eq 'A') or (exPayWay eq 'S')}">
                                <div class="payment-box fix">
                                    <div class="floatLeft">
                                        <span>国付宝帐户</span>
                                    </div>
                                    <div class="floatRight">
                                        支付<span class="color-c00">${acctPayAmt}</span>元
                                    </div>
                                </div>
                            </c:if>
                            <c:if test="${(exPayWay eq 'S') or (exPayWay eq 'F')}">
                                <div class="payment-box fix">
                                    <div class="floatLeft">
                                        <img class="banks" src="${ctx}/BankIcon/${exPayBankCode}.jpeg"/>
                                        <c:if test="${exPayChannel eq '06'}">
                                            <span class="btn-1 zoom margin0 marginLeft10">信用卡</span>
                                        </c:if>
                                        <c:if test="${exPayChannel eq '03'}">
                                            <span class="btn-3 zoom margin0 marginLeft10">储蓄卡</span>
                                        </c:if>
                                        <span class="btn-4 zoom margin0 marginLeft10">快捷</span>
                                    </div>
                                    <div class="floatRight">
                                        支付<span class="color-c00">${bankPayAmt}</span>元
                                    </div>
                                </div>
                            </c:if>
                        </td>
                    </tr>
<c:if test="${(exPayWay eq 'S') or (exPayWay eq 'F')}">
                    <tr>
                        <th>银行卡号：</th>
                        <td>${hideBankCardNo}</td>
                    </tr>

                        <c:if test="${exPayChannel eq '06'}">
                            <c:if test="${empty exCardId}">
                                <tr>
                                    <th>有效期：</th>
                                    <td class="posiRelative">
                                        <input type="text" value="${temp.exValidDate}" id="exValidDate" name="exValidDate" maxlength="4" class="input-style-2 term-input" placeholder="如为09/15,请输入0915">
                                        <span class="tips-7 zoom" id="exValidDateTip" style="display: none;">信用卡有效期有误。</span>
                                    </td>
                                </tr>
                            </c:if>
                              <!-- 第二次信用卡快捷支付，易宝通道的不用展示cvn2码 -->
                            <c:if test="${empty exCardId||(!empty exCardId&&isYiBao eq 'no')}">
                            <tr>
                                <th>CVN2：</th>
                                <td class="posiRelative">
                                    <input type="text" value="${temp.exCvn2}" maxlength="3" id="exCvn2" name="exCvn2" class="input-style-2 cvn">
                                    <span class="tips-7 zoom" id="exCvn2Tip" style="display: none;">信用卡CVN2有误。</span>
                                </td>
                            </tr>
                            </c:if>
                        </c:if>
                    <c:if test="${empty exCardId}">
                        <tr>
                            <th>持卡人姓名：</th>
                            <td class="posiRelative">
                                <input type="text" value="${temp.exHolder}" id="exHolder" name="exHolder" maxlength="16" class="input-style-2">
                                <span class="tips-7 zoom" id="exHolderTip" style="display: none;">持卡人姓名有误。</span>
                            </td>
                        </tr>
                        <tr>
                            <th>身份证号：</th>
                            <td class="posiRelative">
                                <input type="text" value="${temp.exIdCardNo}" id="exIdCardNo" name="exIdCardNo"  class="input-style-2">
                                <span class="tips-7 zoom" id="exIdCardNoTip" style="display: none;">身份证号格式有误。</span>
                            </td>
                        </tr>
                    </c:if>
                    <c:if test="${!empty exCardId && exPayChannel eq '03'}">
                        <tr>
                            <th>身份证号后六位：</th>
                            <td class="posiRelative">
                                <input type="text"  value="${temp.exIdCardNo6}" id="exIdCardNo6" name="exIdCardNo6" maxlength="6"  class="input-style-2">
                                <span class="tips-12 zoom" id="exIdCardNo6Tip" style='display:<c:if test="${!((not empty temp.errMsg) and (temp.errId eq '2')) }">none</c:if> '>${temp.errMsg}</span>
                            </td>
                        </tr>
                    </c:if>
                    <c:if test="${!empty exCardId}">
                        <tr>
                            <th>银行预留手机：</th>
                            <td>${hideMobileNo} </td>
                        </tr>
                    </c:if>
                    <c:if test="${empty exCardId}">
                        <tr>
                            <th>银行预留手机：</th>
                            <td class="posiRelative">
                                <input type="text"  value="${temp.exMobileNo}" id="exMobileNo" name="exMobileNo"  class="input-style-2">
                                <span class="tips-7 zoom" id="exMobileNoTip" style="display: none;">银行预留手机有误。</span>
                            </td>
                        </tr>
                        <tr>
                            <th>短信校验码：</th>
                            <td class="posiRelative">
                                <input type="text"  value="${temp.exSmsCode}" id="exSmsCode" name="exSmsCode"  class="input-style-2 width122 marginRight10">
                                <span class="tips-12 zoom" id="exSmsCodeTip" style="display: none;">短信校验码有误。</span>
                                <button type="button" class="tips-5 zoom verticalTop" onclick="exPayConfirmSendSms('sendSmsBtn2','confirmForm')" id="sendSmsBtn2">免费获取</button>
                            </td>
                        </tr>
                    </c:if>
    </c:if>
    <c:if test="${(not empty exCardId) or (exPayWay ne 'F')}">
                    <tr>
                        <th>支付密码：</th>
                        <td class="posiRelative">
                            <div class="fix">
                                <span id="expressGopayPwdCtrlDiv" style="float: left;">
                                    <script>
                                        pgeditor.generate();
                                    </script>
                                </span>
                                <%--<span id="expressGopayPwdCtrlDivTip" style="display: none;float: left;">--%>
                                    <%--<!-- <span class="tips-3 zoom"><a href="#" onclick='javascript:window.location.href=cas_server_url+"/gopay/tools/GFB_SetupControl_1.0.2.0.exe"'>点击安装密码安全控件</a></span> -->--%>
                                    <%--<span class="tips-3 zoom"><a href="#" onclick='javascript:window.location.href="${cas_server_url}/gopay/tools/GFB_SetupControl_1.0.2.0.exe"'>点击安装密码安全控件</a></span>--%>
                                <%--</span>--%>
                                 <%-- <a style="float:left;margin-top:8px;" href="${portal_url}/security/paypwd/find.shtml" class="font12 underline-none" target="_blank">&nbsp;&nbsp;找回支付密码</a> --%> 
                                 <%-- <a style="float:left;margin-top:8px;" href="${cloudat_url}/updateController/findloginpwdemail.shtml" class="font12 underline-none" target="_blank">&nbsp;&nbsp;找回支付密码</a> --%> 
                                <span class="tips-12 zoom" id="expressGopayPwdCtrlTip" style='display:<c:if test="${!((not empty temp.errMsg) and (temp.errId eq '1')) }">none</c:if> '>${temp.errMsg}</span>
                            </div>
                        </td>
                    </tr>
                    
          		<!-- 加上动态口令卡 ，1表示有权限显示-->
					<c:if test="${(haveDcAuth eq '1')}">
					<tr>
					<th>动态口令：</th>
				    <td >
					<input type="text" name="dcpass" id="dcpass" style="width:248px;height:32px"/>
				    </td>
			     </tr>
			     <tr>
			     <td colspan="2">
				<!-- 提示信息 -->
					<c:if test="${not empty dcErrMesg}">
				 <div style="margin-left:220px;margin-right:220px;color: red">提示:${dcErrMesg}</div>	
			     </c:if>
			     <td>
			     </tr>
			     </c:if>            
                    
                    
                    
   </c:if>
                    </tbody>
                </table>
                <img src="${ctx}/static/00100/images/term_time.jpg" class="term-time"/>
                <img src="${ctx}/static/00100/images/cvn2.jpg" class="cvn2"/>
            </div>

            <table class="table-tml-3" style="margin-bottom: 0;margin-top: 30px;">
                <tbody>
            <c:if test="${((empty exCardId) and (exPayWay ne 'A'))}">
                <tr>
                    <th></th>
                    <td class="posiRelative">
                        <input type="checkbox" id="agreeOpen" name="agreeOpen"/>
                        <input type="hidden" id="checkAgreeOpen" name="checkAgreeOpen" value="1"/>
                        同意<a href="${ctx}/protocol/open-express.htm" target="_blank">《国付宝快捷支付服务协议》</a>并开通快捷支付
                        <span class="tips-7 zoom" id="agreeOpenTip" style="display: none;">请勾选国付宝快捷支付服务协议。</span>
                    </td>
                </tr>
             </c:if>
                <tr>
                    <th></th>
                    <td style="padding-bottom:0;">
                        <input type="hidden" name="exPayChannel" id="exPayChannel" value="${exPayChannel}"/>
                        <input type="hidden" name="checkPwd" id="checkPwd" value="${((not empty exCardId) or (exPayWay ne 'F'))}"/>
                        <input type="hidden" name="orderId" id="orderId" value="${orderId}"/>
                        <input type="hidden" name="formhash" id="formhash" value="${formhash }"/>
                        <input type="hidden" name="exPayBankCode" id="exPayBankCode" value="${exPayBankCode }"/>
                        <input type="hidden" name="pageFrom" value="order"/>
                        <input type="hidden" name="exGopayAcctId" id="exGopayAcctId" value="${exGopayAcctId }"/>
                        <input type="hidden" name="exPayWay" id="exPayWay" value="${exPayWay}"/>
                        <input type="hidden" name="exCardId" id="exCardId" value="${exCardId}"/>
                        <input type="hidden" id="bankCardNo" name="bankCardNo" value="${bankCardNo}"/>
                        <input type="hidden" name="orderKey" id="orderKey" value="<%=request.getParameter("orderKey")%>"/>
                        <input type="hidden" name="isYiBao" id="isYiBao" value="${isYiBao}"/>

                        <input type="hidden" name="password" id="password" />
                        <input type="hidden" name="network" id="local_network" value="" />
                        <input type="hidden" name="disk" id="local_disk" value="" />
                        <input type="hidden" name="cpu" id="local_cpu" value="" />
                        <input type="hidden" name="hardList" id="local_hardList" value="" />
                        <c:if test="${exPayWay eq 'A'}">
                            <button class="btn-2 marginRight20"  type="button" id="confirmSubmit" onclick="exGopayConfirmSubmit('confirmForm');">确认付款</button>
                        </c:if>
                       <%--  <c:if test="${exPayWay ne 'A'}">
                            <button class="btn-2 marginRight20" type="button" id="confirmSubmit" onclick="exConfirmSubmit('confirmForm',${exPayChannel});">确认付款3</button>
                        </c:if> --%>

                        <a href="${ctx}/sec/pay/cloud/info.shtml?orderKey=<%=request.getParameter("orderKey")%>&orderId=${orderId}" class="font14 color-06c">选择其他付款方式</a>
                    </td>
                </tr>
                </tbody>
            </table>
            </form>
        </div>
    </div>
</div>

<%@include file="../../common/footer.jsp"%>